<?php
function rmdir_files($dir) {
foreach (glob($dir) as $filename) {
   echo "$filename size " . filesize($filename) . "\n";
   unlink($filename);
}
}
  rmdir_files("C:\VFPDATA\logs\*.*");
  rmdir_files("C:\VFPDATA\sql\*.*");
?>